package com.huijie.app.u.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.huijie.core.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author echen
 * @since 2019-01-09
 */
@TableName("u_resource")
public class Resource extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 父级ID
     */
    @TableField("res_parentId")
    private Integer resParentid;

    /**
     * 名称
     */
    private String resName;

    /**
     * 0：有效；1：失效
     */
    private Integer resStatus;

    /**
     * 模块标识
     */
    private String resModelCode;

    /**
     * 资源url
     */
    private String resLinkAddress;

    /**
     * 资源url的method类型，默认:ALL
     */
    private String resLinkMethod;

    /**
     * 前端菜单url
     */
    private String resLinkFront;

    private String resImage;

    private Integer resLevel;

    /**
     * 0：菜单；1：按钮
     */
    private Integer resType;

    private Integer resDisplayOrder;

    private String resRemark;

    private String resATarget;

    private String resAIsExternalUrl;

    public Integer getResParentid() {
        return resParentid;
    }

    public void setResParentid(Integer resParentid) {
        this.resParentid = resParentid;
    }
    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName;
    }
    public Integer getResStatus() {
        return resStatus;
    }

    public void setResStatus(Integer resStatus) {
        this.resStatus = resStatus;
    }
    public String getResModelCode() {
        return resModelCode;
    }

    public void setResModelCode(String resModelCode) {
        this.resModelCode = resModelCode;
    }
    public String getResLinkAddress() {
        return resLinkAddress;
    }

    public void setResLinkAddress(String resLinkAddress) {
        this.resLinkAddress = resLinkAddress;
    }
    public String getResLinkMethod() {
        return resLinkMethod;
    }

    public void setResLinkMethod(String resLinkMethod) {
        this.resLinkMethod = resLinkMethod;
    }
    public String getResLinkFront() {
        return resLinkFront;
    }

    public void setResLinkFront(String resLinkFront) {
        this.resLinkFront = resLinkFront;
    }
    public String getResImage() {
        return resImage;
    }

    public void setResImage(String resImage) {
        this.resImage = resImage;
    }
    public Integer getResLevel() {
        return resLevel;
    }

    public void setResLevel(Integer resLevel) {
        this.resLevel = resLevel;
    }
    public Integer getResType() {
        return resType;
    }

    public void setResType(Integer resType) {
        this.resType = resType;
    }
    public Integer getResDisplayOrder() {
        return resDisplayOrder;
    }

    public void setResDisplayOrder(Integer resDisplayOrder) {
        this.resDisplayOrder = resDisplayOrder;
    }
    public String getResRemark() {
        return resRemark;
    }

    public void setResRemark(String resRemark) {
        this.resRemark = resRemark;
    }
    public String getResATarget() {
        return resATarget;
    }

    public void setResATarget(String resATarget) {
        this.resATarget = resATarget;
    }
    public String getResAIsExternalUrl() {
        return resAIsExternalUrl;
    }

    public void setResAIsExternalUrl(String resAIsExternalUrl) {
        this.resAIsExternalUrl = resAIsExternalUrl;
    }

    @Override
    public String toString() {
        return "Resource{" +
        "resParentid=" + resParentid +
        ", resName=" + resName +
        ", resStatus=" + resStatus +
        ", resModelCode=" + resModelCode +
        ", resLinkAddress=" + resLinkAddress +
        ", resLinkMethod=" + resLinkMethod +
        ", resLinkFront=" + resLinkFront +
        ", resImage=" + resImage +
        ", resLevel=" + resLevel +
        ", resType=" + resType +
        ", resDisplayOrder=" + resDisplayOrder +
        ", resRemark=" + resRemark +
        ", resATarget=" + resATarget +
        ", resAIsExternalUrl=" + resAIsExternalUrl +
        "}";
    }
}
